<%@ page import="com.wl.shixun5.*,java.util.*"%>
<%@ page import="com.wl.shixun5.dao.CartInfo_DAO" %>
<%@ page import="com.wl.shixun5.info.CartInfo_BookInfo" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>2350300097 万朗</title>
</head>
<body>
<%
    String userId = (String)session.getAttribute("memberID");
    List<CartInfo_BookInfo> li = CartInfo_DAO.find(userId);

    for(CartInfo_BookInfo cb:li) {
        String bookCount = request.getParameter(cb.getCi().getBookId());
        CartInfo_DAO.change(userId, cb.getCi().getBookId(), bookCount);
    }
    response.sendRedirect("shoppingcart.jsp");
%>

</body>
</html>
